package com.JavaNet.chapter5_url.code;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * @author SwordFall
 * create 2017-12-22 00:35.
 * desc
 * <p>
 * 参考URLDecoderDemo代码及解释
 **/
public class URLEncoderDemo {


    private static String hutu = "https://www.hutool.cn/docs/#/core/线程和并发/线程工具-ThreadUtil?id=threadutilnewexecutor";

    public static void main(String[] args) throws UnsupportedEncodingException {

        String encodedHutu = URLEncoder.encode(hutu, "utf-8");
        System.out.println(encodedHutu);

    }


}
